package com.example.controller;

import com.example.pojo.dto.GeekJobDTO;
import com.example.service.GeekJobService;
import com.example.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用于演示 :
 *
 * @author : gao'm
 * @date : 2023/10/14 09:29:21
 */
@RestController
@RequestMapping("UserExp")
public class UserExpPostController {
    @Autowired
    private GeekJobService geekJobService;

    @GetMapping("geekRecommend")
    public Result searchPost(String searchkey){
        List<GeekJobDTO> postlist= geekJobService.getAll(searchkey);
        return new Result(200,"查询成功",postlist);
    }
}
